package com.amar.dtadmin.apidoc.model;

import lombok.Data;

import java.util.List;

/**
 * @author xiaoshiqiang
 * @since 2025/2/8
 */
@Data
public class ApiDocInfoResp {
    private String projectid;
    private String apiid;
    private String groupid;
    private String grouplevel;
    private String groupname;
    private String api;
    private String method;
    private String name;
    private String descr;
    private String datadescr;
    private String status;
    private String chargeuser;
    private Object tags;
    private ReqRespParam requestparam;
    private ReqRespParam responseparam;
    private String reqsample;
    private String respsample;
    private String updateuser;
    private String updatetime;
    private String usecustomer;

    @Data
    public static class ReqRespParam {
        private Body body;
        private List<Object> rest;
        private List<Object> query;
        private List<Object> head;
    }

    @Data
    public static class Body {
        private List<ApiDocCreateReq.ParamItem> json;
        private List<ApiDocCreateReq.ParamItem> formdata;
    }
}
